home *** CD-ROM | disk | FTP | other *** search
- /* Logical operators */
-
- #define AND && /* logical AND */
- #define OR || /* logical OR */
- #define NOT ! /* logical NOT */
- #define EQ == /* equal value comparison */
- #define NE != /* not equal value comparison */
- #define LT < /* less than value comparison */
- #define LE <= /* less than or equal value comparison */
- #define GT > /* greater than value comparison */
- #define GE >= /* greater than or equal to comparison */
-
- /* Bitwise operators */
-
- #define BAND & /* bitwise AND */
- #define BOR | /* bitwise OR */
- #define BXOR ^ /* bitwise exclusive OR */
- #define BNOT ~ /* bitwise NOT */
- #define LSHF << /* left shift */
- #define RSHF >> /* right shift */
-
- /* Arithmatic operators */
-
- #define INC ++ /* increment */
- #define DEC -- /* decrement */
- #define MOD % /* modulo division */
-
-